package ua.org.nuos.wclientgui.pages;

import org.apache.wicket.bootstrap.Bootstrap;
import org.apache.wicket.markup.head.IHeaderResponse;
import org.apache.wicket.markup.html.WebPage;
import ua.org.nuos.wclientgui.ClientApplication;
import ua.org.nuos.wclientgui.panels.FooterPanel;
import ua.org.nuos.wclientgui.panels.HeaderPanel;

/**
 * Created with IntelliJ IDEA.
 * User: dio
 * Date: 9/16/12
 * Time: 1:14 PM
 * To change this template use File | Settings | File Templates.
 */
public class BasePage extends WebPage {

    public BasePage() {
        super();
        add(new HeaderPanel("headerId"));
        add(new FooterPanel("footerId"));
    }

    protected ClientApplication getApp() {
        return (ClientApplication) getApplication();
    }

    @Override
    public void renderHead(IHeaderResponse response) {
        super.renderHead(response);

        Bootstrap.renderHead(response);
    }
}
